
.label {
	display: inline-block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	font-size: 0;

	> .iconfont {font-size: 22px;}
}

@mixin buildLabel($key) {
	$size: 0 !default;
	$lineHt: 0 !default;
	$fontSize: 16px !default;

	@if $key == xs {
		$size: auto;
		$lineHt: 1;
	} @else {
		@if $key == lg {
			$size: 40px;
		} @else if $key == sm {
			$size: 20px;
		}

		$lineHt: $size;
		$fontSize: $size - $size / 5;
	}

	.label-#{$key} {
		width: $size;
		height: $size;
		line-height: $lineHt;

		> .iconfont {font-size: $fontSize;}
	}
}

@include buildLabel(lg);
@include buildLabel(sm);
@include buildLabel(xs);
